package com.term.util.annotation;

import java.lang.annotation.*;

/**
 * Created by chenGang on 2017/1/10.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface Domain2Info {


    Class clazz() default Object.class;

    Domain2Info.ConverterType type() default Domain2Info.ConverterType.DEFAULT;

    /**
     * 目标对象名字
     * @return
     */
    String targetName() default "";

    public static enum ConverterType {
        DEFAULT,
        DATE2LONG,
        MIXPARAM,
        ID2DOMAIN,
        OBJ2JSON,
        STRING2DATE,
        ENUMNAME2ENUM,
        OTHER;

        private ConverterType() {
        }
    }
}
